# include <iostream>

using namespace std;

void inverse_order_of_elements (int arr[],int capacity);

int export_it (int arr[],int capacity);

int main(int argc, char const *argv[])
{
    int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
    
    inverse_order_of_elements(arr,10);
    export_it (arr,10);
    
    return 0;
}

void inverse_order_of_elements (int arr[],int capacity)
{
    for(int i = 0; i < capacity / 2; i++)
    {
        arr[i] += arr[10 - i - 1];
        arr[10 - 1 - i] = arr[i] - arr[10 - 1 - i];
        arr[i] -= arr[10 - 1 - i];

    }
}
int export_it (int arr[],int capacity)
{
    for(int i = 0; i < capacity; i++)
    {
        cout << arr[i] <<endl;
    }
}

